package com.example.service.impl;

import com.example.service.HystrixService;
import com.example.service.HystrixOpenFeignService;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HystrixServiceImpl implements HystrixService {
    @Autowired
    private HystrixOpenFeignService hystrixOpenFeignService;

    @Override
    public String getInfo() {
        return hystrixOpenFeignService.getOpenFeiInfo();
    }


    @Override
    public String getTimeout() {
        return hystrixOpenFeignService.testTimeout();
    }


}
